<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns="http://www.w3.org/1999/xhtml" version="2.1">
	<jsp:directive.page contentType="text/html; charset=UTF-8" />
	<jsp:directive.page isELIgnored="false" />
	<jsp:output omit-xml-declaration="false" doctype-root-element="HTML"
		doctype-system="about:legacy-compat" />
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="shortcut icon" href="${pageContext.request.contextPath }/img/favicon.png" />
<title>Ikex</title>

<link rel="stylesheet"
	href="${pageContext.request.contextPath }/css/estilos.css"
	type="text/css" media="screen" charset="utf-8" />

<link rel="stylesheet"
	href="${pageContext.request.contextPath }/css/menuLateral.css"
	type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" language="javascript" src="${pageContext.request.contextPath }/js/stock/fueraStock.js">
<!-- a -->
</script>

<meta name="description" content="" />
<meta name="author" content="Emilio Javier Castillo Gonzalez" />

</head>
<body>
	<c:import url="${pageContext.request.pathInfo}/jsp/menuLateral.jsp" />
	<div id="contenedor">
		<c:import url="${pageContext.request.pathInfo}/jsp/cabecera.jsp" />

		<div id="contenido" style="padding-top: 0px;">
			
			<div id="centro" style="margin-top: 0px;">
				<c:import url="${pageContext.request.pathInfo}/Admin/menuAdmin.jsp" />
				<c:import url="${pageContext.request.pathInfo}/Admin/menuProductos.jsp" />
				<script type="text/javascript">
					var doc = document.getElementById("d");
					doc.setAttribute("class", "menuAdminHover");
				</script>
				
				<div class="caja left" >
				<form action="${pageContext.request.contextPath}/editarBorrar" method="post">
				<table class="tablaGris">
				<jsp:useBean id="producto" class="es.ikex.beans.ProductosBean" scope="session" />
				<c:forEach items="${producto.descatalogados}" varStatus="a" var="pro">
					<c:if test="${a.index == 0 }">
						<c:set var="noFor" value=""></c:set>
						<tr>
							<td class="sinBorde"></td>
							<td class="blanco">Foto</td>
							<td class="blanco">Concepto</td>
							<td class="blanco">Fecha introduccion</td>
							<td class="blanco">Medidas</td>
							<td class="blanco">Precio</td>
							<td class="blanco">Stock</td>
						</tr>
						<tr>
							<td><input checked="checked" type="radio" value="${pro.codigo }" name="codigo" id="a${a.index }"/></td>
							<td><label for="a${a.index }"><img height="50px" width="50px" alt="foto-mueble" src="${pageContext.request.contextPath}/img/muebles/${pro.foto}" /></label></td>
							<td><label for="a${a.index }">${pro.concepto }</label></td>
							<td><label for="a${a.index }">${pro.fechaIntro }</label></td>
							<td><label for="a${a.index }">${pro.alto } x ${pro.ancho } x ${pro.profundidad }</label></td>
							<td><label for="a${a.index }">${pro.precio }</label></td>
							<td><label for="a${a.index }">${pro.stock}</label></td>
						</tr>
					</c:if>
					<c:if test="${a.index != 0 }">
						<tr>
							<td><input type="radio" value="${pro.foto }" name="codigo" id="a${a.index }"/></td>
							<td><label for="a${a.index }"><img height="50px" width="50px" alt="foto-mueble" src="${pageContext.request.contextPath}/img/muebles/${pro.foto}" /></label></td>
							<td><label for="a${a.index }">${pro.concepto }</label></td>
							<td><label for="a${a.index }">${pro.fechaIntro }</label></td>
							<td><label for="a${a.index }">${pro.alto } x ${pro.ancho } x ${pro.profundidad }</label></td>
							<td><label for="a${a.index }">${pro.precio }</label></td>
							<td><label for="a${a.index }">${pro.stock}</label></td>
						</tr>
					</c:if>
					<c:if test="${a.index == producto.descatalogados.size()-1 }">
						<tr>
							<td><input type="submit" name="catalogar" value="Catalogar" /></td>
							<td class="sinBorde"></td>
							<td class="sinBorde"></td>
							<td class="sinBorde"></td>
							<td class="sinBorde"></td>
							<td class="sinBorde"></td>
							<td class="sinBorde"></td>
						</tr>
					</c:if>
				</c:forEach>
				</table>
				<c:out value="${noFor }" default="No se ha encontrado ningun producto fuera de catalogo" />
				</form></div>
				<div style="clear: both;"></div>
			</div>

			<div id="der"></div>
		</div>
	</div>
	<script>
	cargarCalculoStock();
</script>
</body>
</html>
</jsp:root>